//
//  UserSession.h
//  GolfFriend
//
//  Created by Vescky on 13-11-27.
//  Copyright (c) 2013年 vescky.org. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "UserPrivateInfoVO.h"

@interface UserSession : NSObject {
    
}

+ (id)shareUserSession;

- (bool)isLoginned;

- (NSString*)getUserId;
- (NSString*)getUserName;
- (NSString*)getUserAvatar;
- (bool)setNickName:(NSString*)_nickName;
- (bool)setEnName:(NSString*)_enName;
- (bool)setUserAvatar:(NSString*)_avatar;

- (NSString*)getTeamName;
- (NSString*)getTeamAvatar;
- (bool)setTeamName:(NSString*)_tName;
- (bool)setTeamAvatar:(NSString*)_tAvatar;

- (NSDictionary*)getDefaultTeamInfo;
- (bool)saveDefaultTeamInfo:(NSDictionary*)tInfo;

//私人信息
- (NSDictionary*)getUserPrivateInfo;
- (bool)saveUserInfo:(NSDictionary*)uInfo;
- (void)destroyUserInfo;
//短信验证码
- (bool)saveSmsCode:(NSString*)smsCode;
- (NSString*)getSmsCode;
//公开信息
- (bool)savePublicInfo:(NSDictionary*)pInfo;
- (NSDictionary*)getUserPublicInfo;
//天气信息
- (bool)saveWeatherInfo:(NSDictionary*)wInfo;
- (NSDictionary*)getWeatherInfo;
//正在聊天的窗口
- (bool)saveChatWindow:(NSString*)_uId;
- (bool)deleteChatWindow:(NSString*)_uId;
- (NSMutableArray*)getRecetlyChatWindows;
//历史消息
- (bool)saveHistoryComments:(NSString*)jsonString;
- (NSString*)getHistoryComments;
- (NSString*)HistoryComments;

//cacheForNearbyUsers = @"xx"(contentString)
- (bool)saveNearbyList:(NSString*)nString;
- (NSString*)getNearbyUserList;

- (NSString*)getDefaultNearbyProperty;
- (bool)saveDefaultNearbyProperty:(NSString*)p;

- (void)cleanSession;//清除所有的信息，logout的时候调用

@end
